package model;

public class Point implements Cloneable
{
    public static final int DEFAULT_X = 0;
    public static final int DEFAULT_Y = 0;

    private double x;
    private double y;

    public Point(double x, double y)
    {
        this.x=x;
        this.y=y;
    }

    public Point()
    {
        this(DEFAULT_X,DEFAULT_Y);
    }

    public double getX()
    {
        return this.x;
    }

    public double getY()
    {
        return this.y;
    }

    public void setX(double x)
    {
        this.x=x;
    }

    public void setY(double y)
    {
        this.y=y;
    }

    @Override
    public Point clone()
    {
        return new Point(this.x,this.y);
    }

    @Override
    public String toString() { return "("+this.x+","+this.y+")"; }
}
